<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Index - REST for R3</title>

    <style type="text/css">
        .table{
            font-size:13px;
            line-height:20px;
        }
        .td{
            background-color:#fff;
        }
        .td1{
            background-color:#999999;
            color:#FFFFFF;
            text-align:center;
            font-weight: bold;
        }
        #Layer1 {
            width:778px;
            height:22px;
        }
        #Layer2 {
            float:left;
            width:560px;
        }
        #Layer3 {
            width:200px;
            float:right;
            text-align:right;
            padding-right:10px;
        }
    </style>
</head>
<body>
<div align="center"><a name="001"><strong>---数据库结构设计---</strong></a></div>
<br>
<table border="0" width="100%" class="table" cellpadding="0" cellspacing="1" bordercolor="#dddddd">
    <tr>
        <td width="70" nowrap> 子系统</td>
        <td width="100" nowrap> 类别</td>
        <td width="150" nowrap> 表</td>
        <td width="330" nowrap align="left"> ID 表名称</td>
    </tr>
    <th:block th:each="mo:${cate}">

        <tr>
            <td th:text="${mo.getString('label')}">Onions</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
        </tr>

        <th:block th:each="cat:${mo.getJSONArray('children')}">
            <tr>
                <td>&nbsp;</td>
                <td th:text="${cat.getString('label')}">Onions</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
            </tr>

            <tr th:each="tab:${cat.getJSONArray('children')}">
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td nowrap>
                    <a target="_blank" th:href="@{'/p/cs/rest?table='+${tab.getString('id')}}" th:text="${tab.getString('value')}"></a>
                </td>
                <td th:inline="text" nowrap align="left">
                    <!--<span style="width:100px;padding-right:10px" th:text="${tab}"/>-->
                    <!--<%=table.getId()%>-->
                <!--<%=table.getDescription(locale)%>-->
                    <span th:utext="${tab.getString('id')}">...</span>
                    [[${tab.getString('label')}]]
                </td>
            </tr>

        </th:block>
        
        
    </th:block>
</table>
</br>
</body>
</html>